<style>
.fui-header.fui-header-success,
.fui-label.fui-label-success {
    background: #00aeff;
}
.fui-label.fui-label-blue {
    background: #50b6fe;
    color: #fff;
}
.fui-header a.back:before {
	border-color: #fff;
}
</style>
<div class='fui-page fui-page-current'>
    <div class="fui-header fui-header-success">
        <div class="fui-header-left">
            <a class="back" ng-click="goback();"></a>
        </div>
        <div class="title">项目管理</div>
        <div class="fui-header-right">
          <div class="btn btn-sm btn-default-o" style="border-radius:1rem;border: 1px solid #fff;margin-right:0.5rem" href="javascript:;" ng-click="access_json('jy_yuyue/member.serve/edit/')">添加项目</div>
        </div>
    </div>
    <div class='fui-content' style="margin-top:2.5rem">
        <!-- 项目列表 -->
       <div ng-repeat="item in pagedata.list" class="fui-list-group order-item">
	   <div class="fui-list" >
            <div class="fui-list-media batch-item">
                <input type="checkbox" class="fui-radio fui-radio-success batch-item-check" name="checkbox" value="{{item.id}}" />
            </div>
            <div class="fui-list-media round">
                <img ng-src="{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}" class="round"  />
             
                    <div ng-if="item.merchid>0" class="title">多商户</div>
               
            </div>
            <div class="fui-list-inner">
                <div class="title">{{item.title}}</div>
                <div class="subtitle">
                    <span class="price">￥{{item.price}}</span>
                </div>
                <div class="subtitle">
                    <span class="total">库存: {{item.total}}</span>
                    <span class="total">销量: {{item.salenum}}</span>
                </div>
            </div>
		</div>
			<div class="fui-list-group-title" style="margin-bottom:0.3rem">
				<span class="status noremark" style="float:right;">
				<div class="btn btn-sm btn-default-o order-delete" ng-if="item.status==0" href="javascript:;" ng-click="post({},'up','id='+item.id)">上架</div>
				<div class="btn btn-sm btn-default-o order-delete" ng-if="item.status==1" href="javascript:;"  ng-click="post({},'down','id='+item.id)">下架</div>
					<div class="btn btn-sm btn-default-o order-delete" href="javascript:;" ng-click="access_json('/manage.good_list/edit/id='+item.id)">编辑</div>
					<div class="btn btn-sm btn-default-o order-delete" href="javascript:;" ng-click="post({},'del','id='+item.id)">删除</div>
					
				</span>
            </div>
    
        </div>
		<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有发起预约项目！</p>
		</div>
    </div>
    <div class="head-menu-mask"></div>
</div>
<script type="text/javascript">
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});

scope.loading = true;
var page = 1;
var keyword = '';
scope.tool.get_list('jy_yuyue/member.serve/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_yuyue/member.serve/list/');
}
   
</script>
